#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import sysclassinfo_blueprint
from api_1_0.sysClassinfoResource.sysClassinfoResource import SysClassinfoResource
from api_1_0.sysClassinfoResource.sysClassinfoOtherResource import SysClassinfoOtherResource

api = Api(sysclassinfo_blueprint)

api.add_resource(SysClassinfoResource, '/sysClassinfo/<classID>', '/sysClassinfo', endpoint='SysClassinfo')


@sysclassinfo_blueprint.route('/sysclassinfo/update/<classID>', methods=['PUT'], endpoint='SysClassinfoUpdate')
def update(classID):
    return SysClassinfoOtherResource.sensitive_update(classID)
